import requests

url = 'https://httpbin.org/image/png'
response = requests.get(url=url)

with open(r'./httpbin_image.png','wb')as f:
    f.write(response.content)